package com.ams.entity;

import java.io.Serializable;
import java.sql.Timestamp;



import com.ams.util.Constants;
import com.ams.util.TimeFormat;


public class MaintainLog implements Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5384622605023338030L;

	private int maintainLogId;
	
	private Assest assest;
	
	private Timestamp maintainDate;
	
	private float maintainFee;
	
	private String depreDesc;
	
/*	@Transient
	private String maintainDateStr;*/
	
	public MaintainLog(){
		
	}

	public int getMaintainLogId() {
		return maintainLogId;
	}

	public void setMaintainLogId(int maintainLogId) {
		this.maintainLogId = maintainLogId;
	}

	public Assest getAssest() {
		return assest;
	}

	public void setAssest(Assest assest) {
		this.assest = assest;
	}

	public Timestamp getMaintainDate() {
		return maintainDate;
	}

	public void setMaintainDate(Timestamp maintainDate) {
		this.maintainDate = maintainDate;
	}

	public float getMaintainFee() {
		return maintainFee;
	}

	public void setMaintainFee(float maintainFee) {
		this.maintainFee = maintainFee;
	}

	public String getDepreDesc() {
		return depreDesc;
	}

	public void setDepreDesc(String depreDesc) {
		this.depreDesc = depreDesc;
	}

	public String getMaintainDateStr() {
		return TimeFormat.translateTimestampToString(maintainDate,Constants.DATA_TIME_MM_FORMAT);
	}

	public void setMaintainDateStr(String maintainDateStr) {
		this.maintainDate=TimeFormat.translateStringToTimestamp(maintainDateStr, Constants.DATA_TIME_MM_FORMAT);
	}
	
	
	
}
